<!DOCTYPE html>
<html>
{include file="public/head" /}
<body class="zanpian-body">
<section class="content">
<div class="callout callout-title">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <h4>{$nav.title}</h4>
                {notempty name="nav.remark"}
                <p>{$nav.remark}</p>
                {/notempty}
</div>  
<div class="panel-body" id="contents">
<div class="panel-tool">
<div class="row">
              <div class="col-md-6 col-sm-6 col-xs-12 pb15">
                <div id="toolbar" class="toolbar">
                <a form="#list" href="{:url('up')}" class="confirm btn btn-primary btn-disabled ajax-post disabled">更新</a> <a href="{:url('add')}" data-name="添加分类" class="btn btn-success btn-add btn-editone" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-plus"></i> 添加</a> <a  href="{:url('status',array('status'=>1))}" form="#list" class="confirm btn btn-info btn-disabled  ajax-post disabled"><i class="fa fa-unlock"></i> 启用</a> <a  href="{:url('status',array('status'=>0))}" form="#list" class="confirm btn btn-warning btn-disabled  ajax-post disabled"><i class="fa fa-lock"></i> 禁用</a> <a  href="{:url('del')}" form="#list" class="confirm btn btn-danger btn-del btn-disabled ajax-post disabled"><i class="fa fa-trash"></i> 删除</a><span id="selectedChks">已选择<strong></strong>记录</span>
                </div>
                <!-- /.toolbar -->
              </div>
            </div>

</div>
<!-- /.panel-tool -->
    <div class="tab-content">
              <form id="list" method="post" >
                <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
                   <thead>
                    <tr style="height:45px;">
                      <th style="text-align:center;vertical-align: middle; width:5%">
                      <label class="pretty success">
	                   <input type="checkbox" id="checkall" class="delcheckall"> 
	                    <label><i class="mdi mdi-check"></i></label>
	                  </label>
                      </th>
                      <th style="text-align:center;vertical-align: middle;">ID</th>
                      <th style="text-align:center;vertical-align: middle; min-width:150px">标题</th>
                      <th style="text-align:center;vertical-align: middle;" class="hidden-xs">模型</th>
                      <th style="text-align:center;vertical-align: middle;">名称</th>
                      <th style="text-align:center;vertical-align: middle;">拼音</th>
                      <th style="text-align:center;vertical-align: middle;" class="hidden-xs">模版</th>
                      <th style="text-align:center;vertical-align: middle;" class="hidden-xs">排序</th>
                      <th style="text-align:center;vertical-align: middle;" class="hidden-xs">状态</th>
                      <th style="text-align:center;vertical-align: middle; width:100px">操作</th>
                    </tr>
                  </thead>                
               <tbody>
               {notempty name="list"}
               {volist name="list" id="vo"}
               <tr>
                <td class="bs-checkbox" style="text-align:center;vertical-align:middle; font-size:14px">
                <label class="pretty success">
                <input name="id[]" type="checkbox" value="{$vo['list_id']}" id="checkbox"> 
	            <label><i class="mdi mdi-check"></i></label>
	            </label>
                </td>
                
                <td style="text-align:center;vertical-align: middle;">{$vo.list_id}</td>
                <td style="text-align:left;vertical-align: middle;">{$vo.level_show}<a href="{:zanpian_list_url('home/'.$model[$vo.list_sid]['name'].'/show',array('id'=>$vo['list_id'],'dir'=>$vo['list_dir']))}" target="_blank" class="text-link">{$vo.list_name}</a>{notin name="vo.list_sid" value="8,9,11"}
(<font color="red">{:getcount($vo['list_id'],$vo['list_sid'])}</font>){/notin}
{eq name="vo.list_pid" value="0"}{notin name="vo.list_sid" value="5,6"}&nbsp;&nbsp;<a data-name="添加分类" href="{:url('add',array('pid'=>$vo['list_id']))}" class="btn-editone" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-plus" style="color:#F30;"></i></a>{/notin}{/eq}
</td>

                <td style="text-align:center;vertical-align: middle;" class="hidden-xs">{$model[$vo.list_sid]['title']}</td>
<td style="text-align:center;vertical-align: middle;"><input name="list_name[{$vo.list_id}]" class="form-control input-sm" value="{$vo.list_name}" type="text" style="text-align:center; width:80%; margin:0 auto"></td>
                    <td style="text-align:center;vertical-align: middle;"><input name="list_dir[{$vo.list_id}]" class="form-control input-sm" value="{$vo.list_dir}" type="text" style="text-align:center; width:80%; margin:0 auto"></td> 
                    <td style="text-align:center;vertical-align: middle;" class="hidden-xs"><input name="list_skin[{$vo.list_id}]" class="form-control input-sm" value="{$vo.list_skin}" type="text" style="text-align:center; width:80%; margin:0 auto"></td>
                    <td style="text-align:center;vertical-align: middle;" class="hidden-xs"><input name="list_oid[{$vo.list_id}]" class="form-control input-sm" value="{$vo.list_oid}" type="text" style="text-align:center; width:50%; margin:0 auto"></td> 
                    
                <td style="text-align:center;vertical-align: middle;"  class="hidden-xs">
                {eq name="vo.list_status" value="1"} <a class="btn btn-info btn-xs btn-facebook ajax-post" href="{:url('status',array('id'=> $vo['list_id'],'status'=>0))}">显示</a>{else /}<a class="btn btn-info btn-xs btn-danger ajax-post" href="{:url('status',array('id'=> $vo['list_id'],'status'=>1))}">隐藏</a>{/eq}
                 </td>
                <td style="text-align:center;vertical-align: middle;">
                <a href="{:url('edit',array('id'=>$vo['list_id']))}"  data-name="编辑" class="btn btn-success btn-editone btn-xs" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-pencil"></i></a> <a href="{:url('del',array('id'=>$vo['list_id']))}" class="confirm btn btn-danger btn-xs confirm ajax-post"><i class="fa fa-trash-o"></i></a>   
                  </td>
              </tr>
              {/volist}
                 {else/}<tr><td style="text-align:center;vertical-align: middle;" colspan="9" >抱歉，没有找到相关内容！</td></tr>{/notempty} 
            </tbody>
                </table>
              </form>
            </div>
         </div>
         <!-- /.panel-body --> 
        </section>
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.all();
});	
</script>
</body>
</html>
